﻿
"""
SAGC (dis0.0.1+OSD1.9)
Author : SNOWARE(Yu Jiangmeng)
E-mail : SALflake(at)aliyun(dot)com
Web    : 
Date   : 4-May-2024
Url    : https://gitee.com/Ironbayberry/hopeSAGC
For any suggestions, leave a comment on
https://gitee.com/Ironbayberry/hopeSAGC
It helps the teacher call his students.
Usage : python3 main-S.py(At a classroom),or python3 main-T.py(As a teacher)
Licensed under Mozila Public License (MPL) 2.0.
You are free to modify this source.
CHANGELOG
================================================
Version dis0.0.1 (May 4, 2024)
-------------------------------------------------
- First Release
"""
import sys,res
from PyQt5.QtWidgets import QApplication, QMainWindow # type: ignore
 
from ui import Ui_MainWindow  # 导入转换后的UI代码
import sendmsg
global name
global teacher
global ip
ip=""
teacher="同学去吴红兵老师办公室"

class names:
    def n1():
        name="胡雨涵"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n2():
        name="王梓轩"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n3():
        name="叶怡慧"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n4():
        name="张阮杰"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n5():
        name="王易涵"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n6():
        name="余姜盟"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n7():
        name="厉阗玮"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n8():
        name="胡泽奇"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n9():
        name="宋语嫣"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n10():
        name="王菁"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n11():
        name="姜天乐"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n12():
        name="钱思穹"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n13():
        name="姚晨曦"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n14():
        name="宋雨轩"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n15():
        name="马轶骁"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n16():
        name="管雨菲"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n17():
        name="郑婉怡"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n18():
        name="姚寓译"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n19():
        name="方馨言"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n20():
        name="余芳琴"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n21():
        name="程天愉"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n22():
        name="杨仕卿"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n23():
        name="程瑶"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n24():
        name="王译萱"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n25():
        name="潘心怡"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n26():
        name="方博逸"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n27():
        name="余文瑶"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n28():
        name="莫紫依"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n29():
        name="袁梓轩"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n30():
        name="吴慧媛"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n31():
        name="赖李毅"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n32():
        name="洪雨欣"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n33():
        name="高正之"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n34():
        name="宋恩泽"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n35():
        name="宋蒙悦"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n36():
        name="王辰逸"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n37():
        name="徐佳"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n38():
        name="江起超"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n39():
        name="何杨健"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name
    def n40():
        name="李子轩"
        print(name)
        sendmsg.sendmsg(ip,"请"+name+teacher)
        return name

class MyApp(QMainWindow, Ui_MainWindow):
    def __init__(self):
        super(MyApp, self).__init__()
        self.setupUi(self)
        self.pushButton.clicked.connect(names.n1)
        self.pushButton_2.clicked.connect(names.n2)
        self.pushButton_3.clicked.connect(names.n3)
        self.pushButton_4.clicked.connect(names.n4)
        self.pushButton_5.clicked.connect(names.n5)
        self.pushButton_9.clicked.connect(names.n6)
        self.pushButton_10.clicked.connect(names.n7)
        self.pushButton_11.clicked.connect(names.n8)
        self.pushButton_12.clicked.connect(names.n9)
        self.pushButton_13.clicked.connect(names.n33)
        self.pushButton_14.clicked.connect(names.n17)
        self.pushButton_15.clicked.connect(names.n25)
        self.pushButton_16.clicked.connect(names.n10)
        self.pushButton_17.clicked.connect(names.n11)
        self.pushButton_18.clicked.connect(names.n12)
        self.pushButton_19.clicked.connect(names.n13)
        self.pushButton_20.clicked.connect(names.n14)
        self.pushButton_21.clicked.connect(names.n15)
        self.pushButton_22.clicked.connect(names.n16)
        self.pushButton_23.clicked.connect(names.n18)
        self.pushButton_24.clicked.connect(names.n19)
        self.pushButton_25.clicked.connect(names.n20)
        self.pushButton_26.clicked.connect(names.n21)
        self.pushButton_27.clicked.connect(names.n22)
        self.pushButton_28.clicked.connect(names.n23)
        self.pushButton_29.clicked.connect(names.n24)
        self.pushButton_30.clicked.connect(names.n26)
        self.pushButton_31.clicked.connect(names.n27)
        self.pushButton_32.clicked.connect(names.n28)
        self.pushButton_33.clicked.connect(names.n29)
        self.pushButton_34.clicked.connect(names.n30)
        self.pushButton_35.clicked.connect(names.n31)
        self.pushButton_36.clicked.connect(names.n32)
        self.pushButton_37.clicked.connect(names.n34)
        self.pushButton_38.clicked.connect(names.n35)
        self.pushButton_39.clicked.connect(names.n36)
        self.pushButton_40.clicked.connect(names.n37)
        self.pushButton_41.clicked.connect(names.n38)
        self.pushButton_42.clicked.connect(names.n39)
        self.pushButton_43.clicked.connect(names.n40)
        ip = self.lineEdit.text()
 
if __name__ == '__main__':
    app = QApplication(sys.argv)
    window = MyApp()
    window.show()
    sys.exit(app.exec_())
